package cn.lijida.weiwei.favor.modules.home.entity;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.TableId;

import cn.lijida.weiwei.favor.commons.validator.AddGroup;
import cn.lijida.weiwei.favor.commons.validator.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 家庭
 * </p>
 *
 * @author jobob
 * @since 2019-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FavorHome implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 家庭编号
     */
    @TableId
    @NotNull(message = "家庭编号不能为空", groups = UpdateGroup.class)
    private Long homeId;

    /**
     * 家庭名称
     */
    @NotBlank(message = "家庭名称不能为空", groups = AddGroup.class)
    private String homeName;

    /**
     * 创建者
     */
    private Long createMember;

    /**
     * 管理者
     */
    private Long manageMember;

    /**
     * 逻辑删除字段
     */
    private Boolean delFlag;

    /**
     * 0启用1禁用
     */
    private Boolean homeStatus;


}
